<html>
    <head><title>电影列表</title></head><style type="text/css" >
        table, td, tr, th {border: 1px solid #ccc;border-collapse: collapse; font-size: 15px;}
        /*table { width: 90%; }*/
        .desc{ word-break: break-all; word-wrap: break-word; }
        .center { text-align: center;}
        td { padding-top: 10px; padding-bottom: 10px;}
    </style>
    <body><h1>电影列表</h1>
        <table><tr>
                <th style="width: 3%">编号</th>
                <th style="width: 14%">剧集名称</th>
                <th style="width: 20%">电影简介</th>
                <th style="width: 10%">电影名称</th>
                <th style="width: 24%">图片地址</th>
                <th style="width: 3%">分类</th>
                <th style="width: 10%">演员列表</th>
                <th style="width: 3%">上映时间</th>
                <th>地区</th>
                <th>导演</th>
                <th>操作</th>

                {% for mov in movies %}
                <tr>
                    <td class="center">{{ mov.num }}</td>
                    <td><div class="desc">{{ mov.name }}</div></td>
                    <td><div class="desc">{{ mov.description }}</div></td>
                    <td><a href="{{ url_for('get_list', output='html',movie_name= mov.movie_name) }}">{{ mov.movie_name }}</a></td>
                    <td><div class="desc"><a href="{{ mov.img_url }}">{{ mov.img_url }}</a></div></td>
                    <td class="center"><a href="{{ url_for('get_list', output='html', catalog=mov.catalog) }}">{{ mov.catalog }}</a></td>
                    <td>{{ mov.artist }}</td>
                    <td class="center">{{ mov.year }}</td>
                    <td>{{ mov.location }}</td>
                    <td>{{ mov.director }}</td>
                    <td class="center"><a href="{{ url_for('edit_item', id = mov.id) }}">修改</a></td>
                </tr>
                {% endfor %}
            </table>
            <p><a href="{{ url_for('get_list', output='html',start=next_start, count=count) }}{{ m_arg }}">Next</a></p>
        </body>
    </html>
